package com.theme.passport.service.theme;

import com.baomidou.mybatisplus.extension.service.IService;
import com.theme.common.mvc.utils.PageUtils;
import com.theme.passport.entity.theme.WidgeEntity;

import java.util.List;
import java.util.Map;

/**
 * 组件表
 *
 * @author live
 * @email 870459550@qq.com
 * @date 2022-06-21 10:01:48
 */
public interface WidgeService extends IService<WidgeEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageBydistinctName(Map<String, Object> params);

    PageUtils queryPageBydistinctName2(Map<String, Object> params);
    PageUtils queryPageBydistinctNameV2(Map<String, Object> params);
    List<WidgeEntity> queryWidgeListByName(String name);
    List<WidgeEntity> queryWidgeListByNameV2(String name);

    List<WidgeEntity> queryWidgeListByNameAndUserId(String name, Long userId);

    List<WidgeEntity> queryWidgeList(Long themeId);

    List<WidgeEntity> queryListBydistinctNameByIds (Map<String, Object> params);

    PageUtils queryPageBydistinctNameByIds (Map<String, Object> params);

    PageUtils queryPageBydistinctNameByIdsV2 (Map<String, Object> params);

    PageUtils queryPageByCreateAesc(Map<String, Object> params);

    PageUtils queryWidgeByIds(Map<String, Object> params, List<Long> widgeIds);

    PageUtils queryPageByDistinctName(Map<String, Object> params);
}

